<template>
    <div class="goods-card">
        <slot name="header"></slot>
        <div class="content">
            <div class="goods-info">
                <img src="../assets/images/logistics/order_pic.png" alt="" />
                <slot name="center"></slot>
            </div>
            <slot name="btn"></slot>
        </div>
    </div>
</template>

<script>
export default {
    props: ['goodsInfo'],
    data() {
        return {};
    },
};
</script>

<style lang="less" scoped>
.goods-card {
    background-color: #fff;
    color: #333;
    border-bottom: 0.01rem solid #e5e5e5;
    margin: 0.19rem 0;
    .van-cell {
        border-bottom: 0.01rem solid #e5e5e5;
        height: 1rem;
        align-items: center;
    }
    .content {
        padding: 0.33rem 0.28rem 0.25rem;
        overflow: hidden;
        .goods-info {
            display: flex;
            padding-bottom: 0.56rem;
            margin-bottom: 0.25rem;
            border-bottom: 0.01rem dashed #e5e5e5;
            img {
                width: 1.18rem;
                height: 1.18rem;
                margin-right: 0.3rem;
            }
            .txt-info {
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                .title {
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    width: 5.4rem;
                }
                span {
                    color: #999;
                    margin-right: 0.24rem;
                }
            }
        }
        .van-button {
            float: right;
            min-width: 1.4rem;
            height: 0.6rem;
            box-sizing: border-box;
            border-radius: 0.6rem;
            &.sent {
                background-color: #003399;
                color: #fff;
                border: 0.01rem solid #003399;
            }
            &.get {
                background-color: #fff;
                color: #003399;
                border: 0.01rem solid #003399;
            }
            &.evaluate {
                background-color: #ffcc33;
                color: #fff;
                border: 0.01rem solid #ffcc33;
            }
            &.watch-evaluate {
                background-color: #fff;
                color: #ffcc33;
                border: 0.01rem solid #ffcc33;
            }
        }
    }
}
</style>
